﻿using SqlSugar;

namespace MES.Model
{
    public class ModelBase
    {

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]//如果是主键，此处必须指定，否则会引发InSingle(id)方法异常。     
        public int Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnDescription = "创建人")]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(ColumnDescription = "是否启用,0:禁用,1:启用")]
        public int IsEnabled { get; set; }
    }
}
